package com.king.sqlSession;

import java.util.List;

/**
 * @ClassName: Sqlsession
 * @Description: TODO
 * @Author: wangchangyong
 * @Date: 2020/3/26 21:32
 * @Version: 1.0.0
 **/
public interface Sqlsession {

    // 查询所有
    public <E> List<E> selectList(String statementId, Object... params);

    // 根据条件查询单个
    public <T> T selectOne(String statementId, Object... params);

    // 插入
    public int insert(String statementId, Object... params);

    // 更新
    public int update(String statementId, Object... params);

    // 删除
    public int delete(String statementId, Object... params);

    // DAO接口生成代理实现类
    public <T> T getMapper(Class<T> mapperClass);

}
